/**
 * @description: 摄像头管理
 */
import request from '@/config/axios'

export const getCameraListApi = (params: any): Promise<IResponse> => {
  return request.get({ url: '/device/camera/camera', params })
}

export const createCameraApi = (data: any): Promise<IResponse> => {
  return request.post({
    url: '/device/camera/camera',
    data
  })
}

export const deleteCameraListApi = (data: number[]): Promise<IResponse> => {
  return request.delete({ url: `/device/camera/camera`, data })
}

export const updateCameraApi = (id: number, data: any): Promise<IResponse> => {
  return request.put({ url: `/device/camera/camera/${id}`, data })
}

export const getCameraDetailApi = (dataId: number): Promise<IResponse> => {
  return request.get({ url: `/device/camera/camera/${dataId}` })
}
